export default function(
  state = [{ name: "", picUrl: "", playCount: "" }],
  action
) {
  switch (action.type) {
    case "SET_PRODUCT":
      return [...action.payload];
    default:
      return state;
  }
}
